package com.jdrx.ocp.beans.dto.platform;

import com.jdrx.ocp.beans.entity.util.KeyValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.util.List;

/**
 * 创建平台-API授权信息DTO
 */
@ApiModel(value = "CreatePlatformApiByListDTO", description = "创建平台-API授权信息DTO")
public class CreatePlatformApiByListDTO {

    @NotBlank
    @Length(min = 1,max = 255)
    @ApiModelProperty(value = "平台前缀", required = true)
    String platformPrefix;

    @ApiModelProperty(value = "授权api的信息集合", required = true)
    List<KeyValue> list;

    public String getPlatformPrefix() {
        return platformPrefix;
    }

    public void setPlatformPrefix(String platformPrefix) {
        this.platformPrefix = platformPrefix;
    }

    public List<KeyValue> getList() {
        return list;
    }

    public void setList(List<KeyValue> list) {
        this.list = list;
    }
}
